-- GENERATED SPELL FOR [Grulloc] --


function spell0_20216(pUnit, Event) --@Burning Rage,Self--
pUnit:FullCastSpellOnTarget(38771,pUnit)
pUnit:RegisterEvent('Sorts_20216', 12280, 1)
end

function spell1_20216(pUnit, Event) --@Crush Armor,n/a--
pUnit:FullCastSpellOnTarget(21055,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20216', 30286, 1)
end

function spell2_20216(pUnit, Event) --@Grievous Wound,n/a--
pUnit:FullCastSpellOnTarget(38772,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20216', 0, 1)
end

function Sorts_20216(pUnit, Event)
local choix_sorts_20216 = math.random(0, 2)
if choix_sorts_20216 == 0 then
pUnit:RegisterEvent('spell0_20216', 1, 1)
end
if choix_sorts_20216 == 1 then
pUnit:RegisterEvent('spell1_20216', 1, 1)
end
if choix_sorts_20216 == 2 then
pUnit:RegisterEvent('spell2_20216', 1, 1)
end
end

function mob20216_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20216', math.random(1500, 3000), 1)
end

function mob20216_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20216_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20216_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20216, 1, 'mob20216_Action')
RegisterUnitEvent(20216, 2, 'mob20216_Leave')
RegisterUnitEvent(20216, 3, 'mob20216_Kill')
RegisterUnitEvent(20216, 4, 'mob20216_Die')
